<template>
	<view>
		<view class="my-component customer">
			<view class="title">长按识别咨询老师</view>
			<image class="image" show-menu-by-longpress="true" src="https://xinzhu-1301398555.cos.ap-shanghai.myqcloud.com/wxapp/customer-code.png" mode="widthFix"></image>
			<view class="p15" @click="onTell('15851483214')">TEL:15851483214</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"customer",
		data() {
			return {
				
			};
		},
		methods: {
			onTell(number){
				 uni.makePhoneCall({
					phoneNumber:number, // 电话号码
					success: function () {
						console.log('Call Success');
					},
					fail: function () {
						console.log('Call Failed');
					}
				});
			},
		}
	}
</script>

<style>
.my-component{background: url(https://xinzhu-1301398555.cos.ap-shanghai.myqcloud.com/wxapp/customer-background.png) center center no-repeat;text-align: center;background-size: 100% 100%;width: 300px;height: 400px;}
.customer .title{padding: 150px 0px 0px 0px;}
.image{width: 120px;margin-top: 8px;}
</style>